SET SPRITE TEXTURE COORD

This command will modify the internal UV data of the specified sprite.

  Syntax
SET SPRITE TEXTURE COORD Sprite Number, Vertex Index, UValue, VValue
  Parameters
Sprite Number
Integer
The sprite number
Vertex Index
Integer
You can manipulate each vertex of the sprite by specifying a Vertex Index from 0 to 3
UValue
Float
The UValue specify a real value typically from 0.0 to 1.0
VValue
Float
The VValue specify a real value typically from 0.0 to 1.0

  Returns

This command does not return a value.

  Description

You can manipulate each vertex of the sprite by specifying a Vertex Index from 0 to 3. The UValue and VValue specify a real value typically from 0.0 to 1.0. The first two parameters should be specified using integer values.

  Example Code
load image "man.bmp",1
cls
sprite 1,100,100,1
set sprite texture coord 1,0,0.5,0.5
do
loop
end
  See also

SPRITE Commands Menu
Index